package Demo8.Run;

public class Test1 {
    public static void main(String[] args) {
        //创建对象
        Runnable target = new Mythread1();
        //创建线程
        Thread t1 = new Thread(target,"线程1");//创建状态
//        t1.setPriority(Thread.MIN_PRIORITY);
        Thread t2 = new Thread(target,"线程2");
//        t2.setPriority(Thread.MAX_PRIORITY);
        t1.start();//就绪状态,调用以后
        t2.start();
        //CPU的调度方式
        //死锁常见方式
        //线程进程的关系
    }
}
